package com.qsd.TeacherSystem.dao;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qsd.common.pojo.CourseEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.qsd.common.po.Course;

@Mapper
public interface CourseDao extends BaseMapper<CourseEntity> {
	
	int saveCourse(Course course);
	Course queryCourseById(Integer id);
	List<Course> queryCourseByTeacher(String username);
	int updateAllow(Integer id);
	int updateStatus(@Param("courseId")Integer courseId, @Param("status")Integer status);
	int updatePaperId(@Param("courseId")Integer courseId, @Param("paperId")Integer paperId);

}
